// 必须在导出之前初始化 globalThis.pdfjsLib
// 确保 pdfjs-dist/web/pdf_viewer 中的代码能正确访问 pdfjsLib
import * as pdfjsLib from 'pdfjs-dist'
if (!(globalThis as any).pdfjsLib) {
  ;(globalThis as any).pdfjsLib = pdfjsLib
}

// 导入 PDF.js 的样式文件，确保文本层正确显示
import 'pdfjs-dist/web/pdf_viewer.css'

export * from './core/types'
export * from './core/event-bus'
export * from './core/page'
export * from './core/viewer'
